package com.lin.cms.domain;

import java.io.Serializable;
import java.util.Date;

public class Guestbook implements Serializable {

	private static final long serialVersionUID = 1L;

	private int guestbookId;

	private int siteId;

	private int guestbookctgId;

	private int memberId;

	private int adminId;

	private String ip;

	private Date createTime;

	private Date replayTime;

	private String isChecked;

	private String isRecommend;

	public Guestbook() {
	}

	public int getGuestbookId() {
		return guestbookId;
	}

	public void setGuestbookId(int guestbookId) {
		this.guestbookId = guestbookId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public int getGuestbookctgId() {
		return guestbookctgId;
	}

	public void setGuestbookctgId(int guestbookctgId) {
		this.guestbookctgId = guestbookctgId;
	}

	public int getMemberId() {
		return memberId;
	}

	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}

	public int getAdminId() {
		return adminId;
	}

	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getReplayTime() {
		return replayTime;
	}

	public void setReplayTime(Date replayTime) {
		this.replayTime = replayTime;
	}

	public String getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(String isChecked) {
		this.isChecked = isChecked;
	}

	public String getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(String isRecommend) {
		this.isRecommend = isRecommend;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + guestbookId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Guestbook other = (Guestbook) obj;
		if (guestbookId != other.guestbookId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"guestbookId=" + "'" + guestbookId + "'" + 
			")";
	}
	
}
